package com.lab.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lab.common.annotation.Excel;
import com.lab.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 实验预约对象 biz_lab_reservations
 *
 * @author cf
 * @date 2025-02-10
 */
@Data
public class Reservations extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户id
     */
    @Excel(name = "用户姓名")
    private String userName;

    /**
     * 实验室id
     */
    private Long labId;

    /**
     * 实验室id
     */
    @Excel(name = "实验室名称")
    private String labName;

    /**
     * 实验课程id
     */
    private Long courseId;
    /**
     * 实验课程id
     */
    private List<Long> courseIds;

    /**
     * 实验课程id
     */
    @Excel(name = "实验课程名称")
    private String courseName;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 实验时长（分钟）
     */
    @Excel(name = "实验时长", readConverterExp = "分=钟")
    private Long duration;

    /**
     * 指导老师
     */
    private Long instructorId;

    /**
     * 指导老师
     */
    @Excel(name = "指导老师")
    private String instructorName;

    /**
     * 预约状态
     */
    private Long status;

    @Excel(name = "预约状态")
    private String statusDesc;

    /**
     * 审批状态
     */
    private Integer audit;

    /**
     * 审批状态
     */
    private String auditDesc;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 修改时间
     */
    private Date updatedAt;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 修改人
     */
    private String updatedBy;
}
